home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Franz PD
/
Franz PD Disk #067 (1990-04)(Amiga User Group Deutschland e.V.).zip
/
Franz PD Disk #067 (1990-04)(Amiga User Group Deutschland e.V.).adf
/
Examples
/
WhereFrom.p
< prev
next >
Wrap
Text File
|
1989-07-02
|
375b
|
19 lines
Program WhereFrom;
{$I ":Include/DOS.i"}
var
stdfile : FileHandle;
begin
{ Calling Input() will always give you the filehandle of standard
input, since that's where the startup code gets it from }
stdfile := DOSInput();
if IsInteractive(stdfile) then
writeln('Input is coming from the console.')
else
writeln('Input is comming from a file.');
end.